package com.bruce.spring.demo.entity;

import java.util.StringJoiner;

/**
 * @author luotuan
 * @Description
 * @create 2021-04-27 14:09
 **/
public class ApplicationDemoUser {
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public ApplicationDemoUser setName(String name) {
        this.name = name;
        return this;
    }

    public int getAge() {
        return age;
    }

    public ApplicationDemoUser setAge(int age) {
        this.age = age;
        return this;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", ApplicationDemoUser.class.getSimpleName() + "[", "]")
                .add("name='" + name + "'")
                .add("age=" + age)
                .toString();
    }
}
